﻿<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="VMS_SL.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" Height="auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" MinWidth="100"/>
                <ColumnDefinition Width="auto" MinWidth="100"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <TextBlock Grid.Column="0" Grid.Row="0" Text="Rate code"/>
            <TextBox Name="txtratecode" Grid.Column="1" Grid.Row="0" />

            <TextBlock Grid.Column="0" Grid.Row="1" Text="Charge code"/>
            <ComboBox Name="cmbchargecode" Grid.Column="1" Grid.Row="1"/>

            <TextBlock Grid.Column="0" Grid.Row="2" Text="Master types"/>
            <ComboBox Name="cmbmastertypes" Grid.Column="1" Grid.Row="2" SelectionChanged="masteritems_selectionchanged"/>

            <TextBlock Grid.Column="0" Grid.Row="3" Text="Master items"/>
            <ComboBox Name="cmbmasteritems" Grid.Column="1" Grid.Row="3"/>



        </Grid>
        <Grid Grid.Column="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" MinWidth="100"/>
                <ColumnDefinition Width="auto" MinWidth="100"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Rate parameters" Grid.Column="0" Grid.Row="0"/>
            <ListBox Name="lstrateparameters" Grid.Column="1" Grid.Row="0" MaxHeight="100"/>
            <Button Name="btnadditemparameter" Content="Add" Grid.Column="0" Grid.Row="1" Click="btnadditemparameter_Click"/>
            <Button Name="btnremoveitemparameters" Content="Remove" Grid.Column="1" Grid.Row="1" Margin="0,10,10,0" VerticalAlignment="Stretch" Click="btnremoveitemparameters_Click"/>

        </Grid>
        <Grid Grid.Column="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" MinWidth="100"/>
                <ColumnDefinition Width="auto" MinWidth="100"/>
                <ColumnDefinition Width="auto" MinWidth="100"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <TextBlock Text="Custom unit codes" Grid.Column="0" Grid.Row="0"/>
            <ComboBox Name="cmbcustomunitcode" Grid.Column="1" Grid.Row="0"/>
            <Button Name="btnaddcustomunitcode" Content="Add" Grid.Column="2" Grid.Row="0"/>
            <sdk:DataGrid Name="grdunitcodes" Grid.ColumnSpan="3" Grid.Row="1" Margin="10,10,0,0"> </sdk:DataGrid>

        </Grid>
    </Grid>
</UserControl>
